package com.itheima.constructor;

public class Test02 {

    public static void main(String[] args) {
        Student student = new Student("鹿晗",30);

    }
}
class Student{
     String name;
    int age;
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void sing(){
        System.out.println("sing");
    }

}